home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / monoscr.com / MONO.DOC < prev    next >
Encoding:
Text File  |  1991-03-30  |  3.5 KB  |  84 lines

  1.  
  2. Rick Richard
  3. CompuServ ID# 72560,2702
  4.  
  5.  
  6.   If you have a dual monitor system, this device driver could really make your
  7.   life easyer. There are times when a print statement works better than CodeView
  8.   or other debuggers. For those times Mono.sys comes in very handy. The Mono.sys
  9.   device driver redirects all standard C output functions to the monochrome
  10.   screen. Allowing you to send debugging messages to your second monitor without
  11.   writing all over you main application screen. Mono.sys also works with-in Windows
  12.   applications.
  13.  
  14.  
  15. To use the Monochrome screen driver.
  16.  
  17.   1. Include stdio.h
  18.  
  19.   2. Put this open statment in any program that you wish to redirect
  20.      printf from.
  21.  
  22.      freopen( "MONOSCR", "w", stdout );    // Send all printf, puts, and putch's to the Monochrome screen */
  23.      printf( "\f" );                       // Clear Monochrome screen
  24.  
  25.   3. Put the mono.sys device driver in your config.sys file. NOTE:
  26.      if this statment is leftout of the config.sys file, all output from
  27.      printf statments will go to a file named MONOSCR in the current
  28.      directory.
  29.  
  30.      DEVICE = C:\MONO.SYS
  31.  
  32.   4. Now all printf output will go to the Monochrome screen.
  33.  
  34.      NOTE: A "\f" in the print string will cause the Monochrome screen to clear.
  35.  
  36.  
  37.  
  38.          ----------------end-of-author's-documentation---------------
  39.  
  40.                          Software Library Information:
  41.  
  42.                     This disk copy provided as a service of
  43.  
  44.                            Public (software) Library
  45.  
  46.          We are not the authors of this program, nor are we associated
  47.          with the author in any way other than as a distributor of the
  48.          program in accordance with the author's terms of distribution.
  49.  
  50.          Please direct shareware payments and specific questions about
  51.          this program to the author of the program, whose name appears
  52.          elsewhere in  this documentation. If you have trouble getting
  53.          in touch with the author,  we will do whatever we can to help
  54.          you with your questions. All programs have been tested and do
  55.          run.  To report problems,  please use the form that is in the
  56.          file PROBLEM.DOC on many of our disks or in other written for-
  57.          mat with screen printouts, if possible.  PsL cannot debug pro-
  58.          programs over the telephone, though we can answer questions.
  59.  
  60.          Disks in the PsL are updated  monthly,  so if you did not get
  61.          this disk directly from the PsL, you should be aware that the
  62.          files in this set may no longer be the current versions. Also,
  63.          if you got this disk from another vendor and are having prob-
  64.          lems,  be aware that  some files may have become corrupted or
  65.          lost by that vendor. Get a current, working disk from PsL.
  66.  
  67.          For a copy of the latest monthly software library newsletter
  68.          and a list of the 3,000+ disks in the library, call or write
  69.  
  70.                            Public (software) Library
  71.                                P.O.Box 35705 - F
  72.                             Houston, TX 77235-5705
  73.  
  74.                                 1-800-2424-PSL
  75.                              MC/Visa/AmEx/Discover
  76.  
  77.                           Outside of U.S. or in Texas
  78.                           or for general information,
  79.                               Call 1-713-524-6394
  80.  
  81.                           PsL also has an outstanding
  82.                           catalog for the Macintosh.
  83.  
  84.